[index]
& Operator
Syntax
<expression1> & <expression2> <expression1> && <expression2>
Description
The ampersand (&) operator is a text concatenation symbol; it joins the expressions to its left and right to form a single expression.
When the ampersand is used singly, the expressions are concatenated without any intervening characters. When a double ampersand (&&) is used, the expressions are joined with a single intervening space.
Notes
Examples
The following examples show the results obtained by different uses of the ampersand operator:
"Good" & "Morning" Result: GoodMorning
"Good" && "Morning" Result: Good Morning
"January" && 3+4 Result: January 7
Result: The visible property is true.
3 & 4*2 Result: 38
(3 & 4)*2 Result: 68
(3 && 4)*2
Result: error-number expected
This text has been mechanically extracted from the Oracle Media Objects 1.0.4.9 MediaTalk Reference, © 1995 Oracle Corporation, and is provided here solely for educational/historical purposes.